<div class="well">
	<blockquote>
		<h3 class="text-error">My Reservation - Flight</h3>
	</blockquote>
	<table class="table table-bordered" id="my_reservation_block">
		<thead>
			<tr>
				<th>Departure Date</th>
				<th>Flight No.</th>
				<th>Route</th>
				<th>No. of Passenger</th>
				<th>Departure Time</th>
				<th>Details</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($orders as $k => $order):?>
			<tr <?php if ($k % 2 == 0):?>class="info"<?php endif;?>>
				<td><?php echo $order['flight']['departure_date'];?></td>
				<td><?php echo $order['flight']['flight_code'];?></td>
				<td><?php echo $order['flight']['from']['area']['name'] . ' → ' . $order['flight']['to']['area']['name'];?></td>
				<td><?php echo count($order['passenger']);?></td>
				<td><?php echo $order['flight']['departure_time'];?></td>
				<td id="<?php echo $order['id'];?>"><button class="btn btn-mini btn-success" type="button" id="view_order_detail">View</button></td>
			</tr>
			<?php endforeach;?>	
		</tbody>
	</table>
</div>
